package tenumn.energytech.registrys;

import io.github.uicdb.liba.api.register.BlockHolder;
import io.github.uicdb.liba.api.register.LazyRegistry;
import net.minecraft.world.item.Tiers;
import net.minecraft.world.level.block.OreBlock;
import tenumn.energytech.EnergyTech;


public class BlockRegistry {
    private static final LazyRegistry registry = EnergyTech.LAZY_REGISTRY;
    public static BlockHolder<OreBlock> CHARGED_CRYSTAL_ORE = registry.block("charged_crystal_ore", OreBlock::new)
            .pickaxe()
            .tier(Tiers.IRON)
            .loot((blockHolder, lazyBlockLoot) -> lazyBlockLoot.dropOther(blockHolder.get(), ItemRegistry.CHARGED_CRYSTAL.asItem()))
            .build();
    public static BlockHolder<OreBlock> BAUXITE = registry.block("bauxite", OreBlock::new)
            .pickaxe()
            .tier(TierRegistry.BRONZE)
            .build();
    public static BlockHolder<OreBlock> CASSITERITE_ORE = registry.block("cassiterite_ore", OreBlock::new)
            .pickaxe()
            .tier(Tiers.IRON)
            .build();
    public static BlockHolder<OreBlock> GALENA_ORE = registry.block("galena_ore", OreBlock::new)
            .pickaxe()
            .tier(Tiers.IRON)
            .build();
    public static BlockHolder<OreBlock> GRAPHITE_ORE = registry.block("graphite_ore", OreBlock::new)
            .pickaxe()
            .tier(Tiers.IRON)
            .build();
    public static BlockHolder<OreBlock> RUBY_ORE = registry.block("ruby_ore", OreBlock::new)
            .pickaxe()
            .tier(Tiers.IRON)
            .build();
    public static BlockHolder<OreBlock> SALT_ORE = registry.block("salt_ore", OreBlock::new)
            .pickaxe()
            .tier(Tiers.IRON)
            .build();
    public static BlockHolder<OreBlock> SILVER_ORE = registry.block("silver_ore", OreBlock::new)
            .pickaxe()
            .tier(Tiers.IRON)
            .build();
    public static BlockHolder<OreBlock> SPODUMENE_ORE = registry.block("spodumene_ore", OreBlock::new)
            .pickaxe()
            .tier(Tiers.IRON)
            .build();
    public static BlockHolder<OreBlock> TETRAHEDRITE_ORE = registry.block("tetrahedrite_ore", OreBlock::new)
            .pickaxe()
            .tier(Tiers.IRON)
            .build();
    public static BlockHolder<OreBlock> TUNGSTEN_ORE = registry.block("tungsten_ore", OreBlock::new)
            .pickaxe()
            .tier(Tiers.IRON)
            .build();
    public static BlockHolder<OreBlock> URANIUM_ORE = registry.block("uranium_ore", OreBlock::new)
            .pickaxe()
            .tier(Tiers.IRON)
            .build();

    public static void initialize() {
    }

}
